import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './action'
import getters from './getters'

Vue.use(Vuex)

const state = {
	pathUrl: '/',//跳转地址
	transitionName:'go',//跳转方式
	imgError: 'this.src="' + './static/images/loadImg.jpg'+'"',//图片默认地址
	token:null,//请求令牌
	login:false,//是否登录
	isLoading: false, //加载中
	loginbg:false, //登录弹窗
	payStart:false, //登录弹窗
	payId:'', //投注id
	myId:'', //个人id
	myInte:'' //个人积分
}

export default new Vuex.Store({
	state,
	getters,
	actions,
	mutations,
})